<style lang="less">
.change {
  color: #e06c75;
  font-style: normal;
  font-size: 12px;
}
</style>

<template>
  <div :key="key" v-html="htmlStr"></div>
</template>
<script>
const regex = new RegExp('<em', 'gi');
export default {
  props: ['item', 'key'],
  computed: {
    htmlStr() {
      const a = this.item.replace(regex, `<em class="change" `);
      return a;
    }
  }
};
</script>
